package com.wwwarehouse.usercenter.bean.authoritydistribute;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : mundane
 * @time : 2017/9/27 19:33
 * @description :
 * @file : AuserRvBean.java
 */

public class AuserRvBean implements Parcelable {
	public int type;
	public String userName;
	public String authName;
	public String detailMsg;

	public AuserRvBean(int type, String userName) {
		this.type = type;
		this.userName = userName;
	}

	public AuserRvBean(int type, String authName, String detailMsg) {
		this.type = type;
		this.authName = authName;
		this.detailMsg = detailMsg;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.type);
		dest.writeString(this.userName);
		dest.writeString(this.authName);
		dest.writeString(this.detailMsg);
	}

	protected AuserRvBean(Parcel in) {
		this.type = in.readInt();
		this.userName = in.readString();
		this.authName = in.readString();
		this.detailMsg = in.readString();
	}

	public static final Parcelable.Creator<AuserRvBean> CREATOR = new Parcelable.Creator<AuserRvBean>() {
		@Override
		public AuserRvBean createFromParcel(Parcel source) {
			return new AuserRvBean(source);
		}

		@Override
		public AuserRvBean[] newArray(int size) {
			return new AuserRvBean[size];
		}
	};
}
